import multiprocessing


def test(d):
    d['name'] = 'amy'
    d['sex'] = 'girl'


def test2(d):
    d['number'] = 3
    d['type'] = 2


if __name__ == '__main__':
    d = multiprocessing.Manager().dict()
    p = multiprocessing.Process(target=test, args=(d,))
    p2 = multiprocessing.Process(target=test2, args=(d,))
    p.start()
    p2.start()

    p.join()
    p2.join()
    print(d)
